<template>
	<!-- 实时数据 -->
	<view class="realTimeData">
		<view class="itemBox">
			<view class="itemBox_item" v-for="(item,index) in itemList" :key="index">
				<view class="item_name">{{item.name}}:</view><view class="item_num">{{item.num}}{{item.unit}}</view>
			</view>
			
		</view>
		
	</view>
</template>

<script setup>
	import { defineProps,computed,ref } from 'vue';
	const props = defineProps({
	  itemList: Array
	});
</script>

<style lang="scss">
	.realTimeData{
		padding: 34rpx 32rpx;
		box-sizing: border-box;
		.itemBox{
			&_item{
				padding: 30rpx 0;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid  #EFEFEF;
				.item_name{
					font-size: 24rpx;
					color: #333;
				}
				.item_num{
					font-size: 28rpx;
					color: #000;
				}
			}
			.itemBox_item:last-child {
				padding: 30rpx 0;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 0rpx solid  #EFEFEF;
				.item_name{
					font-size: 24rpx;
					color: #333;
				}
				.item_num{
					font-size: 28rpx;
					color: #000;
				}
			}
		}
		
	}
</style>